{"version":3,"sources":["dnd_list.js"],"names":["BX","namespace","addClass","Landing","Utils","removeClass","hasClass","isBoolean","isArray","create","append","insertAfter","insertBefore","attr","slice","style","bind","unbind","data","remove","nextSibling","prevSibling","escapeHtml","findParent","offsetTop","offsetLeft","UI","Field","DragAndDropList","BaseField","apply","this","arguments","layout","isMultiple","multiple","items","value","onDragStart","onDragEnd","onDragOver","onItemDragOver","onItemDragLeave","onDragLeave","onDrop","onDrag","onRemoveClick","onElementClick","onMouseWheel","onMouseOver","onMouseLeave","window","onwheel","wheelEventName","onmousewheel","target","props","className","children","addButton","Button","BaseButton","onClick","onAddItemClick","valueArea","classList","itemsArea","input","forEach","item","createItem","getItem","adjustPlaceholder","getValue","prototype","constructor","__proto__","event","dragItem","currentTarget","dragIndex","findIndex","valueAreaRect","getBoundingClientRect","cloned","isChanged","onValueChangeHandler","preventDefault","dataTransfer","dropEffect","contains","targetRect","targetMiddle","top","height","createItemFromElement","clientY","adjustPopupPosition","stopPropagation","popup","Main","Popup","id","bindElement","content","autoHide","contentContainer","overflowX","popupContainer","rootWindow","PageObject","getRootWindow","document","onDocumentClick","isShown","close","show","delta","Panel","Content","getDeltaFromEvent","scrollTop","requestAnimationFrame","y","offsetParent","buttonTop","buttonLeft","buttonRect","popupRect","yOffset","left","width","setAngle","offset","position","element","img","querySelector","options","name","innerText","image","src","clientX","right","parentNode","getSelectedItem","find","length","placeholder","createValuePlaceholder","html","Loc","getMessage","attrs","title","outerHTML","JSON","stringify","filter","map"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAEb,IAAIC,EAAWF,GAAGG,QAAQC,MAAMF,SAChC,IAAIG,EAAcL,GAAGG,QAAQC,MAAMC,YACnC,IAAIC,EAAWN,GAAGG,QAAQC,MAAME,SAChC,IAAIC,EAAYP,GAAGG,QAAQC,MAAMG,UACjC,IAAIC,EAAUR,GAAGG,QAAQC,MAAMI,QAC/B,IAAIC,EAAST,GAAGG,QAAQC,MAAMK,OAC9B,IAAIC,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